<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改小区信息</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<form id="form" action="${path}/garden/update.json" method="post">
<div class="form">
	<div class="group">
		<div class="label">*所在城市:</div>
		<div class="item">
			<input type="text" id="cityName" name="cityName" />
			<input type="hidden" name="cityid" id="cityid" value="${garden.cityid }" />
		</div>
		<div class="item" id="cityNameTip"></div>
	</div>
	<div class="group">
		<div class="label">*管理处编号:</div>
		<div class="item"><input type="text" name="gardenCode" id="gardenCode" value="${garden.gardenCode }" /></div>
	</div>
	<div class="group">
		<div class="label">*管理处名称:</div>
		<div class="item"><input type="text" name="gardenName" id="gardenName" value="${garden.gardenName }" /></div>
	</div>
	<div class="group">
		<div class="label">地址:</div>
		<div class="item"><input type="text" name="address" id="address" value="${garden.address }" /></div>
	</div>
	<div class="group">
		<div class="label">负责人:</div>
		<div class="item"><input type="text" name="leader" id="leader" value="${garden.leader }" /></div>
	</div>
	<div class="group">
		<div class="label">联系人:</div>
		<div class="item"><input type="text" name="linkman" id="linkman" value="${garden.linkman }" /></div>
	</div>
	<div class="group">
		<div class="label">联系电话:</div>
		<div class="item"><input type="text" name="phone" id="phone" value="${garden.phone }" /></div>
	</div>
	<div class="group">
		<div class="label">房间数:</div>
		<div class="item"><input type="text" name="roomNum" id="roomNum" value="${garden.roomNum }" /></div>
	</div>
	<div class="group">
		<div class="label">多层楼宇数量:</div>
		<div class="item"><input type="text" name="multilayerNum" id="multilayerNum" value="${garden.multilayerNum }" /></div>
	</div>
	<div class="group">
		<div class="label">高层楼宇数量:</div>
		<div class="item"><input type="text" name="highriseNum" id="highriseNum" value="${garden.highriseNum }" /></div>
	</div>
	<div class="group">
		<div class="label">占地面积:</div>
		<div class="item"><input type="text" name="area" id="area" value="${garden.area }" /></div>
	</div>
	<div class="group">
		<div class="label">建筑面积:</div>
		<div class="item"><input type="text" name="buildingArea" id="buildingArea" value="${garden.buildingArea }" /></div>
	</div>
	<div class="group">
		<div class="label">公共场所面积:</div>
		<div class="item"><input type="text" name="publicArea" id="publicArea" value="${garden.publicArea }" /></div>
	</div>
	<div class="group">
		<div class="label">绿化面积:</div>
		<div class="item"><input type="text" name="greenArea" id="greenArea" value="${garden.greenArea }" /></div>
	</div>
	<div class="group">
		<div class="label">道路面积:</div>
		<div class="item"><input type="text" name="roadArea" id="roadArea" value="${garden.roadArea }" /></div>
	</div>
	<div class="group">
		<div class="label">设计车位面积:</div>
		<div class="item"><input type="text" name="carportDesignArea" id="carportDesignArea" value="${garden.carportDesignArea }" /></div>
	</div>
	<div class="group">
		<div class="label">车库面积:</div>
		<div class="item"><input type="text" name="carportArea" id="carportArea" value="${garden.carportArea }" /></div>
	</div>
	<div class="group">
		<div class="label">车位数:</div>
		<div class="item"><input type="text" name="carportNum" id="carportNum" value="${garden.carportNum }" /></div>
	</div>
	<div class="group">
		<div class="label">备注:</div>
		<div class="item"><textarea id="remark" name="remark">${garden.remark }</textarea></div>
	</div>
	<div class="buttons">
		<button class="highlight" id="submit1" type="button">确定</button>
		<button type="button" id="cancel1">取消</button>
		<input type="hidden" id="gardenid" name="gardenid" value="${garden.gardenid }" />
	</div>
</div>
</form>
<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function() {
	createSelect("cityName", "cityid", {
		textField: 'text', valueField:'id',
		url:'${path}/city/getCityData.json?companyid=${companyid}'
	});
	
	$("#form").ligerForm({inputWidth: 300});
	
	verifyForm("form", {}, function(){
		$("#form").ajaxForm(function(data){
			UiUtil.isSuccess(data, "修改管理处成功", function(){
				UiUtil.closeForm(true);
			});
		});
	});
	
	$("#submit1").click(function(){
		UiUtil.lockButton('submit1');
		$("#form").submit();
	});

	$("#cancel1").click(function(){
		UiUtil.closeForm();
	});
	
});
</script>
</body>
</html>